

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>ActionScript Conventions [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Modeling Conventions,Modeling Conventions ActionScript 2 and 3,ActionScript,ActionScript Modeling Conventions">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">ActionScript Conventions</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="modeling_conventions.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="ada_2005.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">Enterprise Architect supports round trip engineering of ActionScript 2 and 3, where the following conventions are used.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Stereotypes</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" bgcolor="#e3e6ed" style="width:104px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Stereotype</span></p>
</td>
<td valign="top" width="199" bgcolor="#e3e6ed" style="width:199px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Applies To</span></p>
</td>
<td valign="top" width="233" bgcolor="#e3e6ed" style="width:233px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Corresponds To</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">literal</span></p>
</td>
<td valign="top" width="199" style="width:199px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Operation</span></p>
</td>
<td valign="top" width="233" style="width:233px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">A literal method referred to by a variable.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">property get</span></p>
</td>
<td valign="top" width="199" style="width:199px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Operation</span></p>
</td>
<td valign="top" width="233" style="width:233px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">A read property.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">property set</span></p>
</td>
<td valign="top" width="199" style="width:199px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Operation</span></p>
</td>
<td valign="top" width="233" style="width:233px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">A write property.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Tagged Values</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" bgcolor="#e3e6ed" style="width:105px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Tag</span></p>
</td>
<td valign="top" width="200" bgcolor="#e3e6ed" style="width:200px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Applies To</span></p>
</td>
<td valign="top" width="232" bgcolor="#e3e6ed" style="width:232px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Corresponds To</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" style="width:105px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">attribute_name</span></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Operation with stereotype </span><span class="f_Tabletext" style="font-style: italic;">property get</span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;">property set</span></p>
</td>
<td valign="top" width="232" style="width:232px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The name of the variable behind this property.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" style="width:105px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">dynamic</span></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Class or Interface</span></p>
</td>
<td valign="top" width="232" style="width:232px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The </span><span class="f_Tabletext" style="font-style: italic;">dynamic</span><span class="f_Tabletext"> keyword.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" style="width:105px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">final</span></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">ActionScript 3: Operation</span></p>
</td>
<td valign="top" width="232" style="width:232px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The </span><span class="f_Tabletext" style="font-style: italic;">final</span><span class="f_Tabletext"> keyword.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" style="width:105px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">intrinsic</span></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">ActionScript 2: Class</span></p>
</td>
<td valign="top" width="232" style="width:232px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The </span><span class="f_Tabletext" style="font-style: italic;">intrinsic</span><span class="f_Tabletext"> keyword</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" style="width:105px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">namespace</span></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">ActionScript 3: Class, Interface, Attribute, Operation</span></p>
</td>
<td valign="top" width="232" style="width:232px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The namespace of the current element.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" style="width:105px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">override</span></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">ActionScript 3: Operation</span></p>
</td>
<td valign="top" width="232" style="width:232px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The </span><span class="f_Tabletext" style="font-style: italic;">override</span><span class="f_Tabletext"> keyword.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" style="width:105px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">prototype</span></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">ActionScript 3: Attribute</span></p>
</td>
<td valign="top" width="232" style="width:232px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The </span><span class="f_Tabletext" style="font-style: italic;">prototype</span><span class="f_Tabletext"> keyword.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="105" style="width:105px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">rest</span></p>
</td>
<td valign="top" width="200" style="width:200px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">ActionScript 3: Parameter</span></p>
</td>
<td valign="top" width="232" style="width:232px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The </span><span class="f_Tabletext" style="font-style: italic;">rest</span><span class="f_Tabletext"> parameter ( ... ).</span></p>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Common Conventions</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Package qualifiers (ActionScript 2) and Packages (ActionScript 3) are generated when the current package is not a <a href="namespaces.htm">namespace root</a></span></li>
<li><span class="f_Bulletlist1">An unspecified type is modeled as </span><span class="f_Bulletlist1" style="font-style: italic;">var</span><span class="f_Bulletlist1"> or an empty </span><span class="f_MenuKeyField">Type</span><span class="f_Bulletlist1"> field.</span></li>
</ul>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">ActionScript 3 Conventions</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">The</span><span class="f_Bulletlist1" style="font-style: italic;"> Is Leaf</span><span class="f_Bulletlist1"> property of a Class corresponds to the sealed keyword</span></li>
<li><span class="f_Bulletlist1">If a </span><span class="f_Bulletlist1" style="font-style: italic;">namespace</span><span class="f_Bulletlist1"> tag is specified it overrides the </span><span class="f_Bulletlist1" style="font-style: italic;">Scope</span><span class="f_Bulletlist1"> that is specified.</span></li>
</ul>
<p class="p_SeeAlso"><span class="f_SeeAlso">See Also</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1"><a href="o316.htm">Import Source Code</a></span></li>
<li><span class="f_Bulletlist1"><a href="generatesourcecode.htm">Generate Source Code</a></span></li>
<li><span class="f_Bulletlist1"><a href="options___actionscript.htm">ActionScript Options</a></span></li>
</ul>




            </div>
          </div>
        </div>



</div>


</body>
</html>
